<?php

/**
 * sfAdminDash base actions.
 *
 * @package    plugins
 * @subpackage sfAdminDash
 * @author     Ivan Tanev aka Crafty_Shadow @ webworld.bg <vankata.t@gmail.com>
 * @version    SVN: $Id: BasesfAdminDashActions.class.php 25203 2009-12-10 16:50:26Z Crafty_Shadow $
 */
class BasesfAdminDashActions extends sfActions {

    /**
     * Executes the index action, which shows a list of all available modules
     *
     */
    public function executeDashboard() {

        if (!$this->getUser()->hasAttribute('kts_global_program_filter')) {
            $this->forward('sfAdminDash', 'global_filter');
        }

        $this->items = sfAdminDash::getItems();

        $this->categories = sfAdminDash::getCategories();
    }

}